<%@ page import="avishay.balderman.EmailHelper" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<%
    if ( request.getParameter("msgTitle") != null ) 
    {
    	EmailHelper.send(request);
    }
%>
<head> 
	<title>Send mail</title> 
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
	<link rel="stylesheet" type="text/css" href="../css/style.css" /> 
</head> 
 
<body> 
	<div id="page-wrap"> 
	    Send mail to the team:
		<div id="contact-area"> 
			<form method="post" action="/jsp/send_mail.jsp"> 
				<label for="msgTitle">Subject:</label> 
				<input type="text" name="msgTitle" id="msgTitle" /> 
				
				<label for="msgBody">Body:</label> 
				<input type="text" name="msgBody" id="msgBody" /> 
		 
				<input type="submit" name="submit" value="Submit" class="submit-button" /> 
			</form> 
			<div style="clear: both;"></div> 
		</div> 
	</div> 
</body> 
</html>